import * as mongoose from 'mongoose'

export const databaseProviders = [
    {
        provide: 'DATABASE_CONNECTION',
        useFactory: (): Promise<typeof mongoose> => {
            console.log('mongodb://localhost/nest')
            return mongoose.connect('mongodb://localhost/nest')
        }
    }
]